//
//  LXScheduleTableViewCell.m
//  ZuLinProject
//
//  Created by bancheng on 2022/7/17.
//  Copyright © 2022 LX_App. All rights reserved.
//

#import "LXScheduleTableViewCell.h"
#import "LXScheduleModel.h"
@implementation LXScheduleTableViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
    self.backgroundColor = [UIColor colorWithHexString:@"#FAFBFC"];
    [self.backView addCorner:4];
    [self.scheduleTypeLab addCorner:2];
    self.scheduleTypeLab.backgroundColor = [mainColor colorWithAlphaComponent:0.1];
    
}

- (void)setModel:(LXScheduleModel *)model{
    _model = model;
    self.timeLab.text = [NSString timestampSwitchTime:[NSString timeSwitchTimestamp:model.appointTime andFormatter:@"yyyy-MM-dd HH:mm:ss"]/1000 andFormatter:@"HH:mm"];
    self.appomTimeLab.text = [NSString timestampSwitchTime:[NSString timeSwitchTimestamp:model.appointTime andFormatter:@"yyyy-MM-dd HH:mm:ss"]/1000 andFormatter:@"yyyy年MM月dd日"];
    self.scheduleTypeLab.text = model.typeDesc;
    self.addressLab.text = model.address;
    
    
}

@end
